package com.cheng.frame;

import java.awt.Color;
import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.border.TitledBorder;

import org.dyno.visual.swing.layouts.Constraints;
import org.dyno.visual.swing.layouts.GroupLayout;
import org.dyno.visual.swing.layouts.Leading;

public class CardInfoPanel extends JPanel{
	private static final long serialVersionUID = 1L;
	private CardInfoPanel cardInfoPanel;
	private JLabel jLabel8;
	private JLabel jLabel9;
	private JLabel jLabel10;
	private JLabel jLabel11;
	private JLabel jLabel7;
	private JTextField tSchool;
	private JTextField tSnum;
	private JTextField tSyear;
	private JTextField tScardID;
	private JTextArea tRemark;
	private JScrollPane jScrollPane0;

	public CardInfoPanel(){
		cardInfoPanel = this;
		cardInfoPanel.setBorder(BorderFactory.createTitledBorder(null, "证件主体信息", TitledBorder.LEADING, TitledBorder.DEFAULT_POSITION, new Font("Dialog", Font.BOLD,
				12), new Color(51, 51, 51)));
		cardInfoPanel.setLayout(new GroupLayout());
		cardInfoPanel.add(getJLabel7(), new Constraints(new Leading(50, 65, 10, 10), new Leading(15, 30, 6, 6)));
		cardInfoPanel.add(getJLabel8(), new Constraints(new Leading(50, 65, 10, 10), new Leading(70, 30, 10, 10)));
		cardInfoPanel.add(getJLabel9(), new Constraints(new Leading(50, 65, 10, 10), new Leading(125, 30, 10, 10)));
		cardInfoPanel.add(getJLabel10(), new Constraints(new Leading(50, 65, 10, 10), new Leading(180, 30, 10, 10)));
		cardInfoPanel.add(getJLabel11(), new Constraints(new Leading(50, 65, 10, 10), new Leading(235, 30, 10, 10)));
		cardInfoPanel.add(getTSchool(), new Constraints(new Leading(135, 175, 10, 10), new Leading(15, 30, 10, 10)));
		cardInfoPanel.add(getTSnum(), new Constraints(new Leading(135, 175, 10, 10), new Leading(70, 30, 10, 10)));
		cardInfoPanel.add(getTSyear(), new Constraints(new Leading(135, 175, 10, 10), new Leading(125, 30, 10, 10)));
		cardInfoPanel.add(getTScardID(), new Constraints(new Leading(135, 175, 10, 10), new Leading(180, 30, 10, 10)));
		cardInfoPanel.add(getJScrollPane0(), new Constraints(new Leading(135, 175, 10, 10), new Leading(235, 100, 10, 10)));
	}
	
	public CardInfoPanel getPanel() {
		if (cardInfoPanel == null) {
			cardInfoPanel = new CardInfoPanel();
			
		}
		return cardInfoPanel;
	}
	
	private JScrollPane getJScrollPane0() {
		if (jScrollPane0 == null) {
			jScrollPane0 = new JScrollPane();
			jScrollPane0.setViewportView(getTRemark());
		}
		return jScrollPane0;
	}

	public JTextArea getTRemark() {
		if (tRemark == null) {
			tRemark = new JTextArea();
			tRemark.setLineWrap(true);
		}
		return tRemark;
	}

	public JTextField getTScardID() {
		if (tScardID == null) {
			tScardID = new JTextField();
		}
		return tScardID;
	}

	public JTextField getTSyear() {
		if (tSyear == null) {
			tSyear = new JTextField();
		}
		return tSyear;
	}

	public JTextField getTSnum() {
		if (tSnum == null) {
			tSnum = new JTextField();
		}
		return tSnum;
	}

	public JTextField getTSchool() {
		if (tSchool == null) {
			tSchool = new JTextField();
		}
		return tSchool;
	}

	private JLabel getJLabel7() {
		if (jLabel7 == null) {
			jLabel7 = new JLabel();
			jLabel7.setText("学校");
		}
		return jLabel7;
	}

	private JLabel getJLabel11() {
		if (jLabel11 == null) {
			jLabel11 = new JLabel();
			jLabel11.setText("备注(选填)");
		}
		return jLabel11;
	}

	private JLabel getJLabel10() {
		if (jLabel10 == null) {
			jLabel10 = new JLabel();
			jLabel10.setText("学生证编号");
		}
		return jLabel10;
	}

	private JLabel getJLabel9() {
		if (jLabel9 == null) {
			jLabel9 = new JLabel();
			jLabel9.setText("入学年份");
		}
		return jLabel9;
	}

	private JLabel getJLabel8() {
		if (jLabel8 == null) {
			jLabel8 = new JLabel();
			jLabel8.setText("学号");
		}
		return jLabel8;
	}
}
